<%@ page language="java" pageEncoding="utf-8"%>

<!--/*** CSS样式 **/-->
<style>
    .input_select{ width: 300px;height: 30px;border: 1px solid rgb(65, 137, 203);color: rgb(65, 137, 203);padding: 5px 5px 5px 5px;font-size: 16px; }
</style>


<!--/*** 控件HTML标签 **/-->
<div class="col-md-12" style="margin-top:15px;padding: 0 0 0 8px;">
    <div class="col-md-3" style="padding: 0;">
        <label style="color: rgb(65, 137, 203);font-size: 13px;padding: 0px;margin: 0px;">舟号:</label>
    </div>
    <div class="col-md-9">
        <select id="boatNumberSel" class="input_select"></select>
    </div>
</div>



<script>
    $(document).ready(function () {
        function iniBoatNumberInfoFnc(){
            var tool_sub_id = '';
            if ($("#toolSubIdCheckbox").length > 0) {
                $("#toolSubIdCheckbox .input_datalist_scroll .input_datalist_cell input:checked").each(function(){
                    if (tool_sub_id != '') {
                        tool_sub_id = tool_sub_id + "," + $.trim($(this).val());
                    }else {
                        tool_sub_id = $.trim($(this).val());
                    }
                });
            }
            var inTrxObj = {
                root_tool_id : $.trim($("#toolMainIdSel").val()),
                tool_id      : $.trim(tool_sub_id)
            };
            comAddSelectValueSelect2Fnc("#boatNumberSel","ZH", inTrxObj,true,false);
        };
        iniBoatNumberInfoFnc();
        $("#toolMainIdSel").change(iniBoatNumberInfoFnc);
        /*** 子设备checkbox控件复选框状态改变事件 **/
        $("#toolSubIdCheckbox .input_datalist_cell").click(iniBoatNumberInfoFnc);
        $("#toolSubIdCheckbox input").each(function(){
            $(this).change(iniBoatNumberInfoFnc);
        });
    });
</script>